package com.generator.mybaitsPlus;

import com.generator.config.AbstractDbConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author 大忽悠
 * @create 2022/9/15 9:50
 */
@Data
@ConfigurationProperties(prefix = "spring.datasource")
public class MpConfig extends AbstractDbConfig {
    private AutoGenerator autoGenerator;

    @Data
    public static class AutoGenerator{
        /**
         * 是否自动配置代码生成器
         */
        private Boolean open;
        /**
         * 代码生成路径
         */
        private String outPutPath;
        /**
         * 父包名
         */
        private String parentModule;
        /**
         * 要自动生成的表
         */
        private List<String> tableNames;
    }
}
